<%--
  Created by IntelliJ IDEA.
  User: YYY-Work
  Date: 2017/4/27
  Time: 12:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path;
%>
<!DOCTYPE html>
<html>
<head>
    <title>Title</title>
    <meta charset="UTF-8">
    <title>AdminLTE | Data Tables</title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>


    <!-- start分页需要使用以下三个js -->
    <script type="text/javascript" src="<%=basePath%>/js/jquery-2.1.1.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/js/admin/utils.js"></script>
    <script type="text/javascript" src="<%=basePath%>/js/base/listtable.js"></script>
    <!-- end分页需要使用以上三个js -->
</head>
<body class="skin-blue">
<!-- header logo: style can be found in header.less -->

<!-- getHeader -->
<s:action name="getHeader" namespace="/privilege" executeResult="true"/>
<div class="wrapper row-offcanvas row-offcanvas-left">
    <!-- Left side column. contains the logo and sidebar -->

    <!-- getMenus -->
    <s:action name="getMenus" namespace="/privilege" executeResult="true"/>

    <!-- Right side column. Contains the navbar and content of the page -->
    <aside class="right-side">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>

                <small>订单管理-进行中订单</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                <li><a href="#">Tables</a></li>
                <li class="active">Data tables</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">

                        <div class="box box-danger">

                            <div class="box-body">
                                <s:action name="getOrderSearchHeader" namespace="/order" executeResult="true"/>
                            </div><!-- /.box-body -->
                        </div><!-- /.box -->
                        <!-- 文章列表 -->
                        <form method="post" target="_self" action="" name="listForm">
                            <div class="box-body table-responsive" id="listDiv">

                                <s:property value="res" escape="false"/>
                            </div><!-- /.box-body -->
                        </form>

                    </div><!-- /.box -->


                </div>
            </div>

        </section><!-- /.content -->
    </aside><!-- /.right-side -->
</div><!-- ./wrapper -->

</body>
<script type="text/javascript">
    //查询文章
    function searchOrder() {

        var registerid = Utils.trim(document.forms['searchForm'].elements['registerid'].value);
        var patientName = Utils.trim(document.forms['searchForm'].elements['patientName'].value);
        var accepterName = Utils.trim(document.forms['searchForm'].elements['accepterName'].value);
        var userContact = Utils.trim(document.forms['searchForm'].elements['userContact'].value);

        var orderCreateTimeStart= Utils.trim(document.forms['searchForm'].elements['dtp_input1'].value);
        var orderCreateTimeEnd= Utils.trim(document.forms['searchForm'].elements['dtp_input2'].value);

        listTable.filter['registerid'] = registerid;
        listTable.filter['patientName'] = patientName;
        listTable.filter['accepterName'] = accepterName;
        listTable.filter['userContact'] = userContact;

        listTable.filter['orderCreateTimeStart'] = orderCreateTimeStart;
        listTable.filter['orderCreateTimeEnd'] = orderCreateTimeEnd;
        listTable.action = "<%=basePath%>/order/ajaxQueryUnGoingOrder.action";

        listTable.loadList();
    }
</script>
</html>
